/// <reference path="typings/node/node.d.ts"/>
var express = require('express');
var parser = require('body-parser');
var session = require('express-session');

var app = express();
app.set('port', process.env.PORT || 3000);

app.use(parser.json());
app.use(parser.urlencoded({
  extended: false,
  limit: '2mb'
}));

app.use(session({
  secret: 'work-tracker-yfwz100',
  key: 'sid'
}))

app.use('/', require('./lib'));

app.listen(app.get('port'), function () {
  console.log('Running at port ' + app.get('port') + '.');
});
